package com.itheima.service;

import com.itheima.goods.pojo.Goods;
import entity.Result;

import java.io.IOException;

public interface GoodsService {
    //查询所有商品信息
    Result findAll() throws IOException;

    //添加商品
    Result add(Goods goods);

    //分页查询
    Result findPage(Integer page,Integer size,Goods goods) throws IOException;

    //根据id查询
    Result findById(Integer id);

    //根据id修改商品信息
    Result update(Integer id,Goods goods);

    //根据id删除商品信息
    Result delete(Integer id);
}
